/* 全屏弹窗样式 */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  animation: modalFadeIn 0.3s ease forwards;
}

.modal-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  animation: modalSlideIn 0.3s ease forwards;
}

/* 弹窗头部 */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0;
}

.modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.modal-close-button {
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #6b7280;
  transition: all 0.2s ease;
}

.modal-close-button:hover {
  background: #e5e7eb;
  color: #374151;
  transform: scale(1.1);
}

/* 倒计时样式 */
.modal-countdown {
  font-size: 14px;
  font-weight: 500;
  color: #d97706; /* 浅黄色 */
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #f59e0b;
}

/* 弹窗内容 */
.modal-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
}

.modal-content p {
  margin: 0 0 16px 0;
}

.modal-content p:last-child {
  margin-bottom: 0;
}

/* 弹窗底部 */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-action-button {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.modal-action-button.secondary {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.modal-action-button.secondary:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.modal-action-button.primary {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.modal-action-button.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

/* 动画效果 */
@keyframes modalFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes modalSlideIn {
  to {
    transform: scale(1) translateY(0);
  }
}

/* 免责声明特殊样式 */
.disclaimer-content {
  background:rgba(254, 243, 199, 0.8);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.disclaimer-content .warning-icon {
  font-size: 24px;
  color: #f59e0b;
  margin-bottom: 12px;
  display: block;
}

.disclaimer-content .disclaimer-text {
  color: #92400e;
  font-weight: 500;
  line-height: 1.7;
  margin: 0;
}

/* 开发中提示样式 */
.development-notice {
  background: #dbeafe;
  border: 1px solid #3b82f6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

.development-notice .dev-icon {
  font-size: 48px;
  color: #3b82f6;
  margin-bottom: 12px;
  display: block;
}

.development-notice .dev-title {
  font-size: 18px;
  font-weight: 600;
  color: #1e40af;
  margin: 0 0 8px 0;
}

.development-notice .dev-message {
  color: #1e40af;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 16px;
  }
  
  .modal-container {
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 20px 20px 0 20px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-content {
    padding: 20px;
    font-size: 15px;
  }
  
  .modal-footer {
    padding: 12px 20px 20px 20px;
  }
  
  .disclaimer-content,
  .development-notice {
    padding: 16px;
    margin: 12px 0;
  }
}